using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Mvc.Ajax;
using BookShelf.Mvc.Models;

namespace BookShelf.Mvc.Controllers
{
    public class BooksController : Controller
    {
        //
        // GET: /Books/

		public ActionResult Index(string list, int page)
        {

			BookShelfDataContext context = new BookShelfDataContext();

			var books = from Book book in context.Books
						orderby book.Title
						select book;

			return View(books.ToList<Book>());
        }
    }
}
